package com.liang.iterator;

import java.util.ArrayList;

public class ForDemo {
    public static void main(String[] args) {
        ArrayList<String> arr = new ArrayList<>();
        arr.add("a");
        arr.add("b");
        arr.add("c");
        arr.add("d");
        arr.add("e");

        for (String s : arr) {
            System.out.println(s);
        }

        int[] arr1 = {1, 2, 3, 4};

        for (int i : arr1) {
            System.out.println(i);

        }
    }
}
